Skip to content

Add CRAN status and downloads badges to README#766

Merged
maciekbanas merged 5 commits intomasterfrom
mb/598-add-cran-download-badge
Apr 2, 2026
Merged

Add CRAN status and downloads badges to README#766
maciekbanas merged 5 commits intomasterfrom
mb/598-add-cran-download-badge

Conversation

@maciekbanas
Copy link
Copy Markdown
Member

@maciekbanas maciekbanas commented Apr 1, 2026

Description

  • Add CRAN version status and grand-total downloads badges to README.Rmd and README.md.
  • Gate store_data.Rmd vignette evaluation on token availability. Chunks are skipped when GITHUB_PAT or GITLAB_PAT_PUBLIC are missing (e.g. on CRAN), preventing build failures. The pkgdown CI workflow already provides these secrets, so the site continues to render with real output.

Related Issue(s)

Fixes #598

How to test

  1. Verify the two new badges (CRAN status, CRAN downloads) appear in the rendered README and link to https://CRAN.R-project.org/package=GitStats.
  2. Run R CMD check --as-cran without GITHUB_PAT / GITLAB_PAT_PUBLIC set — the store_data vignette should build without errors.

Closes #598

Co-authored-by: Ona <no-reply@ona.com>
@maciekbanas maciekbanas self-assigned this Apr 1, 2026
@maciekbanas maciekbanas marked this pull request as ready for review April 1, 2026 13:33
maciekbanas and others added 2 commits April 1, 2026 13:41
Co-authored-by: Ona <no-reply@ona.com>
Skip chunk evaluation when GITHUB_PAT or GITLAB_PAT_PUBLIC are
missing so the vignette builds on CRAN without errors.

Co-authored-by: Ona <no-reply@ona.com>
@maciekbanas maciekbanas merged commit 190c358 into master Apr 2, 2026
9 of 10 checks passed
@maciekbanas maciekbanas deleted the mb/598-add-cran-download-badge branch April 2, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CRAN download badge

2 participants